/**
 * User.java
 * 
 * $Source$
 */
/*
 * Copyright (c) 2012 MyDoctor.com, Inc. All rights reserved.
 */

package com.mydoctor.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the users database table.
 * 
 */
@Entity
@Table(name = "users")
public class User implements Serializable
{
    private static final long serialVersionUID = 1L;

    @Id
    private int userId;

    private String city;

    private String country;

    @Temporal(TemporalType.DATE)
    private Date dateJoined;

    @Temporal(TemporalType.TIMESTAMP)
    private Date dateLastVisited;

    @Temporal(TemporalType.DATE)
    private Date dateOfBirth;

    private String email;

    private byte isActive;

    private String location;

    private String name;

    private String openIdIdentifier;

    private String openIdProvider;

    private String password;

    private String secretAnswer;

    private String secretQuestion;

    private String state;

    private String zipcode;

    protected User()
    {
    }

    public String getCity()
    {
        return this.city;
    }

    public String getCountry()
    {
        return this.country;
    }

    public Date getDateJoined()
    {
        return this.dateJoined;
    }

    public Date getDateLastVisited()
    {
        return this.dateLastVisited;
    }

    public Date getDateOfBirth()
    {
        return this.dateOfBirth;
    }

    public String getEmail()
    {
        return this.email;
    }

    public byte getIsActive()
    {
        return this.isActive;
    }

    public String getLocation()
    {
        return this.location;
    }

    public String getName()
    {
        return this.name;
    }

    public String getOpenIdIdentifier()
    {
        return this.openIdIdentifier;
    }

    public String getOpenIdProvider()
    {
        return this.openIdProvider;
    }

    public String getPassword()
    {
        return this.password;
    }

    public String getSecretAnswer()
    {
        return this.secretAnswer;
    }

    public String getSecretQuestion()
    {
        return this.secretQuestion;
    }

    public String getState()
    {
        return this.state;
    }

    public int getUserId()
    {
        return this.userId;
    }

    public String getZipcode()
    {
        return this.zipcode;
    }

    protected void setCity(String city)
    {
        this.city = city;
    }

    protected void setCountry(String country)
    {
        this.country = country;
    }

    protected void setDateJoined(Date dateJoined)
    {
        this.dateJoined = dateJoined;
    }

    protected void setDateLastVisited(Date dateLastVisited)
    {
        this.dateLastVisited = dateLastVisited;
    }

    protected void setDateOfBirth(Date dateOfBirth)
    {
        this.dateOfBirth = dateOfBirth;
    }

    protected void setEmail(String email)
    {
        this.email = email;
    }

    protected void setIsActive(byte isActive)
    {
        this.isActive = isActive;
    }

    protected void setLocation(String location)
    {
        this.location = location;
    }

    protected void setName(String name)
    {
        this.name = name;
    }

    protected void setOpenIdIdentifier(String openIdIdentifier)
    {
        this.openIdIdentifier = openIdIdentifier;
    }

    protected void setOpenIdProvider(String openIdProvider)
    {
        this.openIdProvider = openIdProvider;
    }

    protected void setPassword(String password)
    {
        this.password = password;
    }

    protected void setSecretAnswer(String secretAnswer)
    {
        this.secretAnswer = secretAnswer;
    }

    protected void setSecretQuestion(String secretQuestion)
    {
        this.secretQuestion = secretQuestion;
    }

    protected void setState(String state)
    {
        this.state = state;
    }

    protected void setUserId(int userId)
    {
        this.userId = userId;
    }

    protected void setZipcode(String zipcode)
    {
        this.zipcode = zipcode;
    }

}